//
//  UIColor+CYHexColor.m
//  friendsCircle
//
//  Created by ccy on 2017/5/10.
//  Copyright © 2017年 ccy. All rights reserved.
//

#import "UIColor+CYHexColor.h"

@implementation UIColor (CYHexColor)

+(instancetype)ColorWithHex:(uint32_t)Hex
{
    int red = (Hex & 0xFF0000) >> 16;
    int green = (Hex &0x00FF00) >> 8;
    int blue = Hex &0x0000FF;
    return [self colorWithRed:red / 255.0 green:green / 255.0 blue:blue / 255.0 alpha:1];
}

@end
